package com.zm.campus.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zm
 * @since 2021-06-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_replace_do")
public class ReplaceDo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 代买代拿表的主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 发布人的id外键
     */
    private String rdUserId;

    /**
     * 代拿0、代买1
     */
    private Integer way;
    private Integer rdSchoolId;//发布人所在的学校id

    /**
     * 代买代拿的内容
     */
    private String content;

    /**
     * 价格
     */
    private String price;

    /**
     *-1审核不通过,0审核中、1待接单中(审核通过),2已被接单，3订单完成
     */
    private Integer state;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date startDate;

    /**
     * 截止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private Date endDate;


}
